import axios from "@/config/request";
import Result from "@/ts/returnType.ts";

const loginApi = (data: any) : Promise<Result> =>{
    return axios({
        url: '/login',
        method: 'post',
        data
    })
}

const logoutApi = () : Promise<Result> => {
    return axios({
        method: "post",
        url: "/logout"
    });
}

export {loginApi, logoutApi}
